package com.yqyd.nbot.service.impl;

import java.util.List;

import com.yqyd.nbot.domain.NbotMenu;
import com.yqyd.nbot.mapper.NbotMenuMapper;
import com.yqyd.nbot.service.INbotMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 九号-功能菜单Service业务层处理
 * 
 * @author Dhq
 * @date 2025-08-15
 */
@Service
public class NbotMenuServiceImpl implements INbotMenuService
{
    @Autowired
    private NbotMenuMapper nbotMenuMapper;

    /**
     * 查询九号-功能菜单
     * 
     * @param id 九号-功能菜单主键
     * @return 九号-功能菜单
     */
    @Override
    public NbotMenu selectNbotMenuById(Long id)
    {
        return nbotMenuMapper.selectNbotMenuById(id);
    }

    /**
     * 查询九号-功能菜单列表
     * 
     * @param nbotMenu 九号-功能菜单
     * @return 九号-功能菜单
     */
    @Override
    public List<NbotMenu> selectNbotMenuList(NbotMenu nbotMenu)
    {
        return nbotMenuMapper.selectNbotMenuList(nbotMenu);
    }

    /**
     * 新增九号-功能菜单
     * 
     * @param nbotMenu 九号-功能菜单
     * @return 结果
     */
    @Override
    public int insertNbotMenu(NbotMenu nbotMenu)
    {
        return nbotMenuMapper.insertNbotMenu(nbotMenu);
    }

    /**
     * 修改九号-功能菜单
     * 
     * @param nbotMenu 九号-功能菜单
     * @return 结果
     */
    @Override
    public int updateNbotMenu(NbotMenu nbotMenu)
    {
        return nbotMenuMapper.updateNbotMenu(nbotMenu);
    }

    /**
     * 批量删除九号-功能菜单
     * 
     * @param ids 需要删除的九号-功能菜单主键
     * @return 结果
     */
    @Override
    public int deleteNbotMenuByIds(Long[] ids)
    {
        return nbotMenuMapper.deleteNbotMenuByIds(ids);
    }

    /**
     * 删除九号-功能菜单信息
     * 
     * @param id 九号-功能菜单主键
     * @return 结果
     */
    @Override
    public int deleteNbotMenuById(Long id)
    {
        return nbotMenuMapper.deleteNbotMenuById(id);
    }
}
